using System;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Globalization;
using System.Collections;

namespace AjaxControlToolkitEx
{
    public class RepeaterEx : Repeater
    {
        public RepeaterItem GetParentItem(Control ctl)
        {
            while (ctl != null)
            {
                if (ctl.Parent != null && ctl.Parent is RepeaterItem)
                    return ctl.Parent as RepeaterItem;
                ctl = ctl.Parent;
            }
            return null;
        }
    }
}
